package com.bridgeintelligent.tag.remotefile;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RemoteFileException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private String msg;
    private int code;

    public RemoteFileException(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public RemoteFileException(int code, Throwable e) {
        this.code = code;
        this.msg = e.getMessage();
    }
}
